package com.androidx.p013lv.mine.model;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.androidx.p013lv.base.http.BaseRes;
import com.androidx.p013lv.base.http.HttpUtils;
import com.androidx.p013lv.base.http.UrlManager;
import com.androidx.p013lv.base.http.callback.HttpCallback;
import com.androidx.p013lv.mine.bean.AttentionBean;

/* renamed from: com.androidx.lv.mine.model.MineAttentionModel */
public class MineAttentionModel extends ViewModel {
    private MutableLiveData<BaseRes<AttentionBean>> attentionListData;

    public MutableLiveData<BaseRes<AttentionBean>> dataAttention() {
        if (this.attentionListData == null) {
            this.attentionListData = new MutableLiveData<>();
        }
        return this.attentionListData;
    }

    public void getAttentionList(int i) {
        HttpUtils.getInsatance().get(UrlManager.getInsatance().attentionUserList(i), new HttpCallback<BaseRes<AttentionBean>>("attentionList") {
            /* class com.androidx.p013lv.mine.model.MineAttentionModel.C13531 */

            public void onLvSuccess(BaseRes<AttentionBean> baseRes) {
                MineAttentionModel.this.attentionListData.setValue(baseRes);
            }
        });
    }

    public void cancelHttp() {
        HttpUtils.getInsatance().cancelTag("attentionList");
    }
}
